/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-22 16:19:19
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-02-18 15:53:23
 * @FilePath: \cxl-driving-training\src\views\finance\bill\index.ts
 */
import { BaseData, BaseMethod } from '@/utils/basc-data'
import { tableConfig } from './config'
import { reactive } from 'vue'
import { FormInstance } from 'element-plus'
import { optionsInterface } from '@/utils/dict-data'

export default class BillData extends BaseData implements BaseMethod {
    billTotal = reactive<optionsInterface[]>([
        { label: '收入（C1）', value: '0' },
        { label: '收入（C2）', value: '0' },
        { label: '收入（其它）', value: '0' }
    ])
    constructor() {
        super(tableConfig)
        this.getData()
    }
    getData = (arg?: any) => {}
    onSearch = (arg?: any) => {
        console.log(arg)
        this.getData()
    }
    onReset = (arg?: any) => {
        this.getData()
    }
    onPaginationChange = (arg?: any) => {
        this.pageData.pagination.pageNo = arg
        this.getData()
    }
    onPaginationSize = (arg?: any) => {
        this.pageData.pagination.pageNo = 1
        this.pageData.pagination.pageSize = arg
        this.getData()
    }
    onOperation = (arg?: any) => {
        const { type, data } = arg
        console.log(type, data)
    }
}
